package com.cqupt.scanning.system.file.service;

import com.cqupt.scanning.system.utils.result.R;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * @Data: 2021/7/6 20:36
 * @Author: 宋宝梁
 */
public interface FileService {
    void handleFootFile(MultipartFile file, HttpServletRequest request, HttpServletResponse response) throws IOException;

    void downloadGaitPdf(Integer id, HttpServletResponse response);

    void handleThreeFile(MultipartFile file, HttpServletRequest request, HttpServletResponse response) throws IOException;

    void downloadThreeFile(Integer id, HttpServletResponse response);

    void downloadFootZipFile(Integer id, HttpServletResponse response);

    void downloadThreeZipFile(Integer id, HttpServletResponse response);

    void downloadLeftCsvFile(Integer id, HttpServletResponse response);

    void downloadRightCsvFile(Integer id, HttpServletResponse response);

    void downloadBalancePdf(Integer id, HttpServletResponse response);

    R downloadBatchFootZipFile(String name, String ageLower, String ageUpper, String doctor, String heightLower, String heightUpper, String measureMode, String sex, String weightLower, String weightUpper, String beginTime, String endTime, String phone, HttpServletRequest request, HttpServletResponse response) throws IOException;

    R downloadBatchBalanceZipFile(String name, String ageLower, String ageUpper, String doctor, String heightLower, String heightUpper, String measureMode, String sex, String weightLower, String weightUpper, String beginTime, String endTime, String phone, HttpServletRequest request, HttpServletResponse response) throws IOException;

    R downloadBatchThreeZipFile(String name, String ageLower, String ageUpper, String heightLower, String heightUpper, String sex, String weightLower, String weightUpper, String beginTime, String endTime, String phone, HttpServletRequest request, HttpServletResponse response) throws IOException;

    R downloadBatchOriginalFootZipFile(String name, String ageLower, String ageUpper, String doctor, String heightLower, String heightUpper, String measureMode, String sex, String weightLower, String weightUpper, String beginTime, String endTime, String userName, String phone, String orgName, HttpServletRequest request, HttpServletResponse response) throws IOException;

    R downloadBatchOriginalThreeZipFile(String name,String ageLower,String ageUpper,String doctor,String heightLower,String heightUpper,String measureMode,String sex,String weightLower,String weightUpper,String beginTime,String endTime,String userName,String phone,String orgName,String businessName,String address,String cityProvince,String country,String fax,
                                        String weightBearingLower, String weightBearingUpper,String dressShoe,String athleticShoe,String casualShoe,String heels,String age, HttpServletRequest request, HttpServletResponse response) throws IOException;

    void handleModFile(MultipartFile file, HttpServletRequest request, HttpServletResponse response) throws IOException;
}
